@@ -237,13 +237,14 @@ private function getField(string $sectionId, string $groupId, string $fieldId):
237
237
* Get field path
238
238
*
239
239
* @param Field $field
240
+ * @param string $fieldId Need for support of clone_field feature
240
241
* @param array &$oldConfig Need for compatibility with _processGroup()
241
242
* @param array &$extraOldGroups Need for compatibility with _processGroup()
242
243
* @return string
243
244
*/
244
- private function getFieldPath (Field $ field , array &$ oldConfig , array &$ extraOldGroups ): string
245
+ private function getFieldPath (Field $ field , string $ fieldId , array &$ oldConfig , array &$ extraOldGroups ): string
245
246
{
246
- $ path = $ field ->getGroupPath () . '/ ' . $ field -> getId () ;
247
+ $ path = $ field ->getGroupPath () . '/ ' . $ fieldId ;
247
248
248
249
/**
249
250
* Look for custom defined field path
@@ -303,7 +304,7 @@ private function getChangedPaths(
303
304
if (isset ($ groupData ['fields ' ])) {
304
305
foreach ($ groupData ['fields ' ] as $ fieldId => $ fieldData ) {
305
306
$ field = $ this ->getField ($ sectionId , $ groupId , $ fieldId );
306
- $ path = $ this ->getFieldPath ($ field , $ oldConfig , $ extraOldGroups );
307
+ $ path = $ this ->getFieldPath ($ field , $ fieldId , $ oldConfig , $ extraOldGroups );
307
308
if ($ this ->isValueChanged ($ oldConfig , $ path , $ fieldData )) {
308
309
$ changedPaths [] = $ path ;
309
310
}
@@ -398,7 +399,7 @@ protected function _processGroup(
398
399
$ backendModel ->addData ($ data );
399
400
$ this ->_checkSingleStoreMode ($ field , $ backendModel );
400
401
401
- $ path = $ this ->getFieldPath ($ field , $ extraOldGroups , $ oldConfig );
402
+ $ path = $ this ->getFieldPath ($ field , $ fieldId , $ extraOldGroups , $ oldConfig );
402
403
$ backendModel ->setPath ($ path )->setValue ($ fieldData ['value ' ]);
403
404
404
405
$ inherit = !empty ($ fieldData ['inherit ' ]);
0 commit comments