Skip to content

Commit

Permalink
[Ticket] add: target blank get nom url ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Aug 30, 2022
1 parent 0a5a323 commit b8b8f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class/actions_digiriskdolibarr.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ public function printCommonFooter($parameters)

require_once __DIR__ . '/../lib/digiriskdolibarr_function.lib.php';

if(is_numeric($object->array_options['options_digiriskdolibarr_ticket_service'])) {
if(is_numeric($object->array_options['options_digiriskdolibarr_ticket_service']) && $object->array_options['options_digiriskdolibarr_ticket_service'] > 0) {
require_once __DIR__ . './digiriskelement.class.php';
$digiriskelement = new DigiriskElement($db);
$digiriskelement->fetch($object->array_options['options_digiriskdolibarr_ticket_service']);
$selectDictionnary = $digiriskelement->getNomUrl(1);
$selectDictionnary = $digiriskelement->getNomUrl(1, 'blank');
?>
<script>
jQuery('.ticket_extras_digiriskdolibarr_ticket_service').html('')
Expand Down

0 comments on commit b8b8f1a

Please sign in to comment.