Try to fix false positive

This commit is contained in:
Laurent Destailleur 2013-09-10 15:45:36 +02:00
parent 9314859ead
commit e467d63a94
3 changed files with 985 additions and 968 deletions

View File

@ -79,7 +79,8 @@ before_script:
#script: phpunit -d memory_limit=-1 --configuration test/phpunit/phpunittest.xml test/phpunit/WebservicesOtherTest.php
#script: phpcs -s --report-checkstyle --report-summary --standard=dev/codesniffer/ruleset.xml --tab-width=4 --ignore=/build/html/,/documents/,/includes/,/test/report/ .
script:
- phpcs -s --report-checkstyle --report-summary --standard=dev/codesniffer/ruleset.xml --tab-width=4 --ignore=/build/html/,/documents/,/includes/,/test/report/ .
- phpcs -s --report-checkstyle --report-checkstyle --report-summary --standard=dev/codesniffer/ruleset.xml --tab-width=4 --ignore=/build/html/,/documents/,/includes/,/test/report/ htdocs/core/class/dolgraph.class.php
# - phpcs -s --report-checkstyle --report-summary --standard=dev/codesniffer/ruleset.xml --tab-width=4 --ignore=/build/html/,/documents/,/includes/,/test/report/ .
- phpunit -d memory_limit=-1 --configuration test/phpunit/phpunittest.xml test/phpunit/AllTests.php
after_script:

File diff suppressed because it is too large Load Diff

View File

@ -922,7 +922,20 @@ elseif ($action == 'builddoc')
exit;
}
}
// Make calculation according to calculationrule
elseif ($action == 'calculate')
{
$calculationrule=GETPOST('calculationrule');
$object->fetch($id);
$object->fetch_thirdparty();
$result=$object->update_price(0,($calculationrule=='totalofround'?0:1));
if ($result <= 0)
{
dol_print_error($db,$result);
exit;
}
}
// Delete file in doc form
elseif ($action == 'remove_file')
{