Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 9cc86bfa authored by Nicolas's avatar Nicolas
Browse files

Remplacement de Name par Title pour l'enregistrement de l'item

parent 2b88a3ad
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,7 @@ class Save extends CategoryWidgetController ...@@ -74,6 +74,7 @@ class Save extends CategoryWidgetController
/** @var Redirect $resultRedirect */ /** @var Redirect $resultRedirect */
$resultRedirect = $this->resultRedirectFactory->create(); $resultRedirect = $this->resultRedirectFactory->create();
$data = $this->getRequest()->getPostValue(); $data = $this->getRequest()->getPostValue();
if ($data) { if ($data) {
if (isset($data['is_active']) && $data['is_active'] === 'true') { if (isset($data['is_active']) && $data['is_active'] === 'true') {
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</checkbox> </checkbox>
</formElements> </formElements>
</field> </field>
<field name="title" sortOrder="20" formElement="input"> <field name="title" sortOrder="20" formElement="input">
<argument name="data" xsi:type="array"> <argument name="data" xsi:type="array">
<item name="config" xsi:type="array"> <item name="config" xsi:type="array">
<item name="source" xsi:type="string">categorywidget</item> <item name="source" xsi:type="string">categorywidget</item>
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
</validation> </validation>
<dataType>text</dataType> <dataType>text</dataType>
<label translate="true">Title</label> <label translate="true">Title</label>
<dataScope>name</dataScope> <dataScope>title</dataScope>
</settings> </settings>
</field> </field>
<field name="identifier" sortOrder="30" formElement="input"> <field name="identifier" sortOrder="30" formElement="input">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment