Sfoglia il codice sorgente

#2267 Error saving location when editing

RomanL 7 anni fa
parent
commit
bb45f758ca
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      modules/base/general/classes/BxBaseModGeneralModule.php

+ 1 - 1
modules/base/general/classes/BxBaseModGeneralModule.php

@@ -1457,7 +1457,7 @@ class BxBaseModGeneralModule extends BxDolModule
 
         $oMetatags = BxDolMetatags::getObjectInstance($CNF['OBJECT_METATAGS']);
         $oMetatags->metaAddAuto($aContentInfo[$CNF['FIELD_ID']], $aContentInfo, $CNF, $CNF['OBJECT_FORM_ENTRY_DISPLAY_EDIT']);
-        if(isset($CNF['FIELD_LOCATION_PREFIX']) && isset($oForm->aInputs[$CNF['FIELD_LOCATION_PREFIX']]) && $oMetatags->locationsIsEnabled())
+        if(isset($CNF['FIELD_LOCATION_PREFIX']) && $oMetatags->locationsIsEnabled())
             $oMetatags->locationsAddFromForm($aContentInfo[$CNF['FIELD_ID']], empty($CNF['FIELD_LOCATION_PREFIX']) ? '' : $CNF['FIELD_LOCATION_PREFIX']);
 
         if(!empty($CNF['FIELD_LABELS']) && ($aLabels = bx_get($CNF['FIELD_LABELS'])) && $oMetatags->keywordsIsEnabled())