Commit dc9055e3 authored by Ivan Ilyin's avatar Ivan Ilyin

Merge branch 'master' of github.com:Sankore/Sankore-3.1

parents 711c8910 05a8d6fe
......@@ -204,13 +204,16 @@ QVector<tIDataStorage*> UBTeacherGuideEditionWidget::save(int pageIndex)
data->name = "title";
data->type = eElementType_UNIQUE;
data->attributes.insert("value",mpPageTitle->text());
result << data;
if(mpPageTitle->text().length()){
result << data;
}
data = new tIDataStorage();
data->name = "comment";
data->type = eElementType_UNIQUE;
data->attributes.insert("value",mpComment->text());
result << data;
if(mpComment->text().length())
result << data;
QList<QTreeWidgetItem*> children = getChildrenList(mpAddAnActionItem);
children << getChildrenList(mpAddAMediaItem);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment