Index: main/plugin-cms/resources/js/Ametys/cms/form/widget/ComposeContent.i18n.js
===================================================================
--- main/plugin-cms/resources/js/Ametys/cms/form/widget/ComposeContent.i18n.js (revision 31929)
+++ main/plugin-cms/resources/js/Ametys/cms/form/widget/ComposeContent.i18n.js (working copy)
@@ -72,7 +72,7 @@
var records = this.combobox.getValueRecords();
for (var i = 0; i < records.length; i++)
{
- if (records[i].raw.isNew == true)
+ if (records[i].getData().isNew == true)
{
// New content: send the chosen title and content type.
values.push({
@@ -161,10 +161,11 @@
* Add a new content.
* @param {String} title The content title entered by the contributor.
* @param {String} contentType The content type selected by the contributor.
+ * @param {Object} formValues the fiedls' form values. Can be empty.
* @param {Ametys.window.DialogBox} dialogbox The create content dialog box.
* @private
*/
- _validateAddContentCb: function(title, contentType, dialogbox)
+ _validateAddContentCb: function(title, contentType, formValues, dialogbox)
{
// Add a new content to the combobox.
this.combobox.addValue(this._createNewContentRecord(title, contentType));
@@ -221,7 +222,7 @@
if (itemEl && closeEl)
{
var record = this.combobox.getRecordByListItemNode(itemEl);
- if (record != null && !record.raw.isNew)
+ if (record != null && !record.getData().isNew)
{
Ametys.Msg.confirm("",
"",
Index: main/plugin-cms/resources/js/Ametys/cms/form/widget/SelectContent.i18n.js
===================================================================
--- main/plugin-cms/resources/js/Ametys/cms/form/widget/SelectContent.i18n.js (revision 31929)
+++ main/plugin-cms/resources/js/Ametys/cms/form/widget/SelectContent.i18n.js (working copy)
@@ -406,7 +406,7 @@
if (contentTarget)
{
- this._contentInfo = Ext.apply({}, contentTarget.parameters);
+ this._contentInfo = Ext.apply({}, contentTarget.getParameters());
}
}