comanage-dev - [comanage-dev] r571 - registry/trunk/app/View/CoPeople
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r571 - registry/trunk/app/View/CoPeople
- Date: Thu, 1 Aug 2013 17:17:53 -0400
Author: benno
Date: 2013-08-01 17:17:53 -0400 (Thu, 01 Aug 2013)
New Revision: 571
Modified:
registry/trunk/app/View/CoPeople/fields.inc
Log:
Make sure view link for role records renders in CO Person list (CO-657)
Modified: registry/trunk/app/View/CoPeople/fields.inc
===================================================================
--- registry/trunk/app/View/CoPeople/fields.inc 2013-07-23 08:34:53 UTC (rev
570)
+++ registry/trunk/app/View/CoPeople/fields.inc 2013-08-01 21:17:53 UTC (rev
571)
@@ -718,10 +718,14 @@
}
if($permissions['edit'])
print $this->Html->link(_txt('op.edit'),
- array('controller' =>
'co_person_roles', 'action' => 'edit', $r['id'], 'co' => $cur_co['Co']['id']),
- array('class' =>
'editbutton')) . "\n";
+ array('controller'
=> 'co_person_roles', 'action' => 'edit', $r['id'], 'co' =>
$cur_co['Co']['id']),
+ array('class' =>
'editbutton')) . "\n";
if($permissions['delete'])
print '<a class="deletebutton" title="' .
_txt('op.delete') . '" onclick="javascript:js_confirm_delete(\'' .
_jtxt(Sanitize::html(generateCn($co_people[0]['Name']))) . '\', \'' .
$this->Html->url(array('controller' => 'co_person_roles', 'action' =>
'delete', $r['id'], 'co' => $cur_co['Co']['id'])) . '\')";>' .
_txt('op.delete') . '</a>' . "\n";
+ } elseif($permissions['view']) {
+ print $this->Html->link(_txt('op.view'),
+ array('controller' =>
'co_person_roles', 'action' => 'view', $r['id'], 'co' => $cur_co['Co']['id']),
+ array('class' =>
'viewbutton')) . "\n";
}
?>
</td>
- [comanage-dev] r571 - registry/trunk/app/View/CoPeople, svnlog, 08/01/2013
Archive powered by MHonArc 2.6.16.