zapier
This commit is contained in:
parent
b8dea76760
commit
11c3b6c967
@ -210,7 +210,8 @@ class ZapierApi extends DolibarrApi
|
|||||||
$sql.= $db->plimit($limit + 1, $offset);
|
$sql.= $db->plimit($limit + 1, $offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
|
$i = 0;
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < $num) {
|
while ($i < $num) {
|
||||||
@ -240,9 +241,6 @@ class ZapierApi extends DolibarrApi
|
|||||||
*/
|
*/
|
||||||
public function post($request_data = null)
|
public function post($request_data = null)
|
||||||
{
|
{
|
||||||
// $debug = '<pre>'.print_r($request_data, true).'</pre>';
|
|
||||||
// $debug .= '<pre>'.print_r(DolibarrApiAccess::$user->rights->zapier, true).'</pre>';
|
|
||||||
// mail('frederic.france@free.fr', 'test hook', $debug);
|
|
||||||
if (! DolibarrApiAccess::$user->rights->zapier->write) {
|
if (! DolibarrApiAccess::$user->rights->zapier->write) {
|
||||||
throw new RestException(401);
|
throw new RestException(401);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -196,7 +196,7 @@ if ($object->id > 0)
|
|||||||
print '<div class="underbanner clearboth"></div>';
|
print '<div class="underbanner clearboth"></div>';
|
||||||
|
|
||||||
$object->info($object->id);
|
$object->info($object->id);
|
||||||
print dol_print_object_info($object, 1);
|
dol_print_object_info($object, 1);
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user