From 3f1889daa3ffc12e180f8b7595289c6cb0574900 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Mon, 1 Apr 2019 09:48:22 +0200 Subject: [PATCH] fix open client card from ticket descriptor #1291 --- front/core/components/input-time/index.js | 5 +++-- modules/ticket/front/descriptor/index.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/front/core/components/input-time/index.js b/front/core/components/input-time/index.js index e9b2b2d7a..9dd6a041e 100644 --- a/front/core/components/input-time/index.js +++ b/front/core/components/input-time/index.js @@ -1,9 +1,10 @@ import ngModule from '../../module'; -import Textfield from '../textfield/textfield'; +import Input from '../../lib/input'; import './style.scss'; -export default class InputTime extends Textfield { +export default class InputTime extends Input { set offsetedValue(value) { + if (!value) return; this._offsetedValue = value; let date = new Date(value); diff --git a/modules/ticket/front/descriptor/index.js b/modules/ticket/front/descriptor/index.js index a58d84c2a..30f3390d4 100644 --- a/modules/ticket/front/descriptor/index.js +++ b/modules/ticket/front/descriptor/index.js @@ -132,6 +132,7 @@ class Controller { state: `client.card.summary({id: ${value.clientFk}})`, tooltip: 'Client card' }}; + if (value.stowaway) { links.btnTwo = { icon: 'icon-stowaway',