Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Praesidiarius committed Mar 4, 2020
1 parent 71b708a commit ce00716
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 10 additions & 3 deletions module/Application/src/Model/CoreEntityModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,16 @@ public function getMultiSelectFieldIDs($sField) {
$sEntityType = explode('-',$this->sSingleForm)[0];
$aFieldIDs = [];

$oTag = CoreController::$aCoreTables['core-tag']->select(['tag_key'=>$oField->tag_key]);
$sTagKey = $oField->tag_key;
$bIsIDFS = stripos($sTagKey,'_idfs');
if($bIsIDFS === false) {

} else {
# its a like
$sTagKey = substr($sTagKey,0,strlen('_idfs'));
}

$oTag = CoreController::$aCoreTables['core-tag']->select(['tag_key'=>$sTagKey]);
if(count($oTag) > 0) {
$oTag = $oTag->current();

Expand All @@ -228,8 +237,6 @@ public function getMultiSelectFieldIDs($sField) {
$aFieldIDs[] = $oEntityTag->entity_tag_idfs;
}
}
} else {
echo 'tag '.$oField->fieldkey.' not found';
}

return $aFieldIDs;
Expand Down
3 changes: 3 additions & 0 deletions module/Application/src/Model/CoreEntityTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ public function saveSingleEntity($oSkeleton,$sIDKey = 'Skeleton_ID',$aDefaultDat
'label' => $oSkeleton->label,
];

if(count($aDefaultData) > 0) {
$aData = $aDefaultData;
}
$aData = $this->attachDynamicFields($aData,$oSkeleton);

$id = (int) $oSkeleton->id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ use Application\Controller\CoreController;
$sUrl = '';
try {
$sModRoute = substr($sModName,strlen($aVendors[0].'-'));
echo $sModRoute.'-setup';
$sUrl = $this->url($sModRoute.'-setup');
} catch(\RuntimeException $e) {

Expand Down

0 comments on commit ce00716

Please sign in to comment.