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

View File

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