Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
package-bricks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QUIQQER
package-bricks
Commits
04b2f7d0
Commit
04b2f7d0
authored
Oct 10, 2019
by
Henning Leutz
🥋
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
f17c0bb8
33d5cf5d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
bin/BrickEdit.js
bin/BrickEdit.js
+6
-0
locale.xml
locale.xml
+12
-0
src/QUI/Bricks/Manager.php
src/QUI/Bricks/Manager.php
+20
-0
No files found.
bin/BrickEdit.js
View file @
04b2f7d0
...
...
@@ -271,6 +271,12 @@ define('package/quiqqer/bricks/bin/BrickEdit', [
}
self
.
Loader
.
hide
();
}).
catch
(
function
(
e
)
{
QUI
.
getMessageHandler
().
then
(
function
(
MH
)
{
MH
.
addError
(
e
.
getMessage
());
});
self
.
Loader
.
hide
();
});
},
...
...
locale.xml
View file @
04b2f7d0
...
...
@@ -1216,6 +1216,18 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?</p>]]></de>
<de>
<![CDATA[Fügen Sie einen Titel hinzu!]]>
</de>
<en>
<![CDATA[Add a title!]]>
</en>
</locale>
<locale
name=
"exception.brick.title.already.exists"
>
<de>
<![CDATA[
Ein Baustein mit dem Titel existiert bereits.
Bausteine mit gleichem Titel erschweren die Übersichtlichkeit.
Bitte wähle einen anderen Titel für diesen Baustein.
]]>
</de>
<en>
<![CDATA[
A Brick with the title already exists.
Bricks with the same title make it difficult to keep track of them.
Please choose a different title for this Brick.
]]>
</en>
</locale>
<locale
name=
"brick.control.googlemaps.title"
>
<de>
<![CDATA[Bausteine: Maps-Karte]]>
</de>
...
...
src/QUI/Bricks/Manager.php
View file @
04b2f7d0
...
...
@@ -935,6 +935,26 @@ class Manager
$checkType
(
$type
);
// check duplicated titles
$result
=
QUI
::
getDataBase
()
->
fetch
([
'from'
=>
$this
->
getTable
(),
'where'
=>
[
'title'
=>
$Brick
->
getAttribute
(
'title'
),
'id'
=>
[
'type'
=>
'NOT'
,
'value'
=>
(
int
)
$brickId
]
],
'limit'
=>
1
]);
if
(
isset
(
$result
[
0
]))
{
throw
new
QUI\Exception
([
'quiqqer/bricks'
,
'exception.brick.title.already.exists'
]);
}
// update
QUI
::
getDataBase
()
->
update
(
$this
->
getTable
(),
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment