Debug
This commit is contained in:
parent
55394e8915
commit
4f9767bca2
1 changed files with 3 additions and 3 deletions
6
vendor/view/products/products_form.php
vendored
6
vendor/view/products/products_form.php
vendored
|
|
@ -12,7 +12,7 @@ if($Main->verifyToken()){
|
|||
$ProductsType = new ProductsType();
|
||||
|
||||
/** Parametros de entrada */
|
||||
$productsId = isset($_POST['products_id']) ? $Main->antiInjection($_POST['products_id']) : 0;
|
||||
echo $productsId = isset($_POST['product_id']) ? $Main->antiInjection($_POST['product_id']) : 0;
|
||||
|
||||
/** Verifica se o ID do projeto foi informado */
|
||||
if($productsId > 0){
|
||||
|
|
@ -41,7 +41,7 @@ if($Main->verifyToken()){
|
|||
|
||||
<div class="col-md-4">
|
||||
|
||||
<h5 class="card-title"><?php echo $productsId > 0 ? 'Editando dados do produto' : 'Cadastrar novo produto';?></h5>
|
||||
<h5 class="card-title"><?php echo $ProductsResult->product_id > 0 ? 'Editando dados do produto' : 'Cadastrar novo produto';?></h5>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -125,7 +125,7 @@ if($Main->verifyToken()){
|
|||
<input type="hidden" name="TABLE" value="products" />
|
||||
<input type="hidden" name="ACTION" value="products_save" />
|
||||
<input type="hidden" name="FOLDER" value="action" />
|
||||
<input type="hidden" name="products_id" value="<?php echo $productsId;?>" />
|
||||
<input type="hidden" name="product_id" value="<?php echo $productsId;?>" />
|
||||
|
||||
<div class="col-sm-12">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue