Fix wrong expected type in viewcat.php
This commit is contained in:
parent
85fc471d3d
commit
f810f2c8e4
@ -316,7 +316,7 @@ print '</tr>';
|
|||||||
$cats = $object->get_filles();
|
$cats = $object->get_filles();
|
||||||
if ($cats < 0)
|
if ($cats < 0)
|
||||||
{
|
{
|
||||||
dol_print_error($db, $cats->error, $cats->errors);
|
dol_print_error($db, $object->error, $object->errors);
|
||||||
} elseif (count($cats) < 1)
|
} elseif (count($cats) < 1)
|
||||||
{
|
{
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
@ -431,7 +431,7 @@ if ($type == Categorie::TYPE_PRODUCT)
|
|||||||
$prods = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
$prods = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
||||||
if ($prods < 0)
|
if ($prods < 0)
|
||||||
{
|
{
|
||||||
dol_print_error($db, $prods->error, $prods->errors);
|
dol_print_error($db, $object->error, $object->errors);
|
||||||
} else {
|
} else {
|
||||||
// Form to add record into a category
|
// Form to add record into a category
|
||||||
$showclassifyform = 1;
|
$showclassifyform = 1;
|
||||||
@ -510,7 +510,7 @@ if ($type == Categorie::TYPE_SUPPLIER)
|
|||||||
$socs = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
$socs = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
||||||
if ($socs < 0)
|
if ($socs < 0)
|
||||||
{
|
{
|
||||||
dol_print_error($db, $socs->error, $socs->errors);
|
dol_print_error($db, $object->error, $object->errors);
|
||||||
} else {
|
} else {
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
@ -567,7 +567,7 @@ if ($type == Categorie::TYPE_CUSTOMER)
|
|||||||
$socs = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
$socs = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
||||||
if ($socs < 0)
|
if ($socs < 0)
|
||||||
{
|
{
|
||||||
dol_print_error($db, $socs->error, $socs->errors);
|
dol_print_error($db, $object->error, $object->errors);
|
||||||
} else {
|
} else {
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
@ -626,7 +626,7 @@ if ($type == Categorie::TYPE_MEMBER)
|
|||||||
$prods = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
$prods = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
||||||
if ($prods < 0)
|
if ($prods < 0)
|
||||||
{
|
{
|
||||||
dol_print_error($db, $prods->error, $prods->errors);
|
dol_print_error($db, $object->error, $object->errors);
|
||||||
} else {
|
} else {
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
@ -685,7 +685,7 @@ if ($type == Categorie::TYPE_CONTACT)
|
|||||||
$contacts = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
$contacts = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
||||||
if ($contacts < 0)
|
if ($contacts < 0)
|
||||||
{
|
{
|
||||||
dol_print_error($db, $contacts->error, $contacts->errors);
|
dol_print_error($db, $object->error, $object->errors);
|
||||||
} else {
|
} else {
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
@ -747,7 +747,7 @@ if ($type == Categorie::TYPE_ACCOUNT)
|
|||||||
$accounts = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
$accounts = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
||||||
if ($accounts < 0)
|
if ($accounts < 0)
|
||||||
{
|
{
|
||||||
dol_print_error($db, $accounts->error, $accounts->errors);
|
dol_print_error($db, $object->error, $object->errors);
|
||||||
} else {
|
} else {
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user