Skip to content

Commit

Permalink
#135 [Product] add: set statut & statut buy to 0 on product creation …
Browse files Browse the repository at this point in the history
…from registrationcertificatefr form
  • Loading branch information
Théo David committed Mar 28, 2023
1 parent 453ee2e commit 4181a12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions class/actions_dolicar.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ public function printCommonFooter($parameters)

$('#d1_vehicle_brand').attr('value',<?php echo json_encode($brand_name); ?>)
$('#d1_vehicle_brand').prop("readonly", true)

//set statut & statut buy to 0 in "+" button of creation form
$('.field_fk_product').find('.butActionNew').attr('href', $('.field_fk_product').find('.butActionNew').attr('href') + '&statut=0&statut_buy=0')
</script>
<?php
}
Expand Down

0 comments on commit 4181a12

Please sign in to comment.