Debug
This commit is contained in:
parent
6f8f6404a1
commit
a1da98ad87
2 changed files with 5 additions and 5 deletions
4
vendor/action/products/products_save.php
vendored
4
vendor/action/products/products_save.php
vendored
|
|
@ -18,8 +18,8 @@ try{
|
|||
$reference = isset($_POST['reference']) ? (string)filter_input(INPUT_POST,'reference', FILTER_SANITIZE_SPECIAL_CHARS) : '';
|
||||
$version = isset($_POST['version']) ? (int)filter_input(INPUT_POST,'version', FILTER_SANITIZE_SPECIAL_CHARS) : 0;
|
||||
$versionRelease = isset($_POST['version_release']) ? (int)filter_input(INPUT_POST,'version_release', FILTER_SANITIZE_SPECIAL_CHARS) : 0;
|
||||
$productsId = isset($_POST['product_id']) ? (int)filter_input(INPUT_POST,'product_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0;
|
||||
$productsTypeId = isset($_POST['products_type_id']) ? (int)filter_input(INPUT_POST,'products_type_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0;
|
||||
$productsId = isset($_POST['product_id']) ? (int)filter_input(INPUT_POST,'product_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0;
|
||||
$productsTypeId = isset($_POST['product_type_id']) ? (int)filter_input(INPUT_POST,'product_type_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0;
|
||||
|
||||
|
||||
/** Validando os campos de entrada */
|
||||
|
|
|
|||
6
vendor/view/products/products_form.php
vendored
6
vendor/view/products/products_form.php
vendored
|
|
@ -81,9 +81,9 @@ if($Main->verifyToken()){
|
|||
|
||||
<div class="col-sm-3">
|
||||
|
||||
<label for="products_type_id">Tipo:</label>
|
||||
<label for="product_type_id">Tipo:</label>
|
||||
|
||||
<select class="form-control form-control" id="products_type_id" name="products_type_id">
|
||||
<select class="form-control form-control" id="product_type_id" name="product_type_id">
|
||||
|
||||
<option value="" selected>Selecione</option>
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ if($Main->verifyToken()){
|
|||
$ProductsTypeResult = $ProductsType->All(0,0);
|
||||
foreach($ProductsTypeResult as $ProductsTypeResultKey => $Result){
|
||||
?>
|
||||
<option value="<?php echo $Result->products_type_id;?>" <?php echo $ProductsResult->products_type_id === $Result->products_type_id ? 'selected' : '';?>><?php echo $Result->description;?></option>
|
||||
<option value="<?php echo $Result->product_type_id;?>" <?php echo $ProductsResult->product_type_id === $Result->product_type_id ? 'selected' : '';?>><?php echo $Result->description;?></option>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue