Skip to content

Commit

Permalink
Remove edit-name link
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Mar 25, 2016
1 parent fdfe9da commit 4ba2ac9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/Controller/IndividualController.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,6 @@ public function getEditMenu() {
$menu = new Menu(I18N::translate('Edit'), '#', 'menu-indi');

if (Auth::isEditor($this->record->getTree())) {
foreach ($this->record->getFacts() as $fact) {
if ($fact->getTag() === 'NAME' && $fact->canEdit()) {
$menu->addSubmenu( new Menu(I18N::translate('Edit name'), '#', 'menu-indi-editname', array(
'onclick' => 'return edit_name("' . $this->record->getXref() . '", "' . $fact->getFactId() . '");',
)));
break;
}
}

$menu->addSubmenu(new Menu(I18N::translate('Add a new name'), '#', 'menu-indi-addname', array(
'onclick' => 'return add_name("' . $this->record->getXref() . '");',
)));
Expand Down

0 comments on commit 4ba2ac9

Please sign in to comment.