Skip to content
Code-Schnipsel Gruppen Projekte
Commit 072c89de erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: #116 - brick with same title check

Übergeordneter 66e0038f
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -334,7 +334,7 @@ public function getAreasByProject(Project $Project, $layoutType = false)
// get bricks
foreach ($templates as $template) {
$brickXML = \realpath(OPT_DIR . $template . '/bricks.xml');
$brickXML = \realpath(OPT_DIR.$template.'/bricks.xml');
if (!$brickXML) {
continue;
......@@ -550,7 +550,7 @@ public function getBrickByUID($uid)
*/
public function getAvailableBrickSettingsByBrickType($brickType)
{
$cache = 'quiqqer/bricks/brickType/' . \md5($brickType);
$cache = 'quiqqer/bricks/brickType/'.\md5($brickType);
try {
return QUI\Cache\Manager::get($cache);
......@@ -873,7 +873,7 @@ public function saveBrick($brickId, array $brickData)
}
if (!empty($areas)) {
$areaString = ',' . \implode(',', $areas) . ',';
$areaString = ','.\implode(',', $areas).',';
}
$Brick->setAttributes($brickData);
......@@ -951,8 +951,10 @@ public function saveBrick($brickId, array $brickData)
$result = QUI::getDataBase()->fetch([
'from' => $this->getTable(),
'where' => [
'title' => $Brick->getAttribute('title'),
'id' => [
'title' => $Brick->getAttribute('title'),
'project' => $Brick->getAttribute('project'),
'lang' => $Brick->getAttribute('lang'),
'id' => [
'type' => 'NOT',
'value' => (int)$brickId
]
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren