#1660 ticket.log si el usuario es un cliente falla

This commit is contained in:
Carlos Jimenez Ruiz 2019-10-01 10:47:06 +02:00
parent 26be791cf0
commit cef28307d0
2 changed files with 5 additions and 6 deletions

View File

@ -31,10 +31,9 @@
<div>
<span translate class="label">Changed by</span><span class="label">: </span>
<span
class="link"
ng-class="{'link': log.user.worker.id, 'value': !log.user.worker.id}"
ng-click="$ctrl.showWorkerDescriptor($event, log.user.worker.id)"
translate
class="value">{{::log.user.name | dashIfEmpty}}
translate>{{::log.user.name | dashIfEmpty}}
</span>
</div>
<div>
@ -53,10 +52,9 @@
</vn-td>
<vn-td class="expendable">
<span
class="link"
ng-class="{'link': log.user.worker.id, 'value': !log.user.worker.id}"
ng-click="$ctrl.showWorkerDescriptor($event, log.user.worker.id)"
translate
class="value">{{::log.user.name | dashIfEmpty}}
translate>{{::log.user.name | dashIfEmpty}}
</span>
</vn-td>
<vn-td class="expendable">

View File

@ -43,6 +43,7 @@ export default class Controller {
showWorkerDescriptor(event, workerFk) {
if (event.defaultPrevented) return;
if (!workerFk) return;
event.preventDefault();
event.stopPropagation();