Skip to content

Commit

Permalink
Merge branch 'master' of github.com:inetprocess/libsugarcrm
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Dyan committed Feb 17, 2016
2 parents 055dbc5 + cf5633e commit 6f89b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MetadataParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function addButtonInRecordView($module, $name, $acl = 'view', $divider =

// Search if the button exists
foreach ($buttons as $button) {
if ($button['name'] === $name) {
if ($button['name'] === strtolower($name)) {
throw new SugarException("The button $name already exists in $module");
}
}
Expand Down Expand Up @@ -112,7 +112,7 @@ public function deleteButtonInRecordView($module, $name)
// Search if the button exists
$buttonPos = false;
foreach ($buttons as $pos => $button) {
if ($button['name'] === $name) {
if ($button['name'] === strtolower($name)) {
$buttonPos = $pos;
break;
}
Expand Down

0 comments on commit 6f89b51

Please sign in to comment.