From 09eede8cde5dd513b42d1c22ecd88559e7fedcbc Mon Sep 17 00:00:00 2001 From: Faustin Date: Mon, 12 Sep 2022 16:42:47 +0200 Subject: [PATCH] scrutinizer on expensereport/class/expensereport_ik.class.php: method fetchLine was not defined --- .../expensereport/class/expensereport_ik.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/htdocs/expensereport/class/expensereport_ik.class.php b/htdocs/expensereport/class/expensereport_ik.class.php index 0d374f1c722..14f6908377e 100644 --- a/htdocs/expensereport/class/expensereport_ik.class.php +++ b/htdocs/expensereport/class/expensereport_ik.class.php @@ -126,6 +126,19 @@ class ExpenseReportIk extends CommonObject return $result; } + /** + * Load object lines in memory from the database + * + * @return int <0 if KO, 0 if not found, >0 if OK + */ + public function fetchLines() + { + $this->lines = array(); + + $result = $this->fetchLinesCommon(); + return $result; + } + /** * Update object into database