This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
PHP Fatal error in ./Timetracker/Model/Timeaccount.php #7194
Comments
does this solve the problem? diff --git a/tine20/Timetracker/Model/Timeaccount.php b/tine20/Timetracker/Model/Timeaccount.php
index ba7c040ee7..a1b052a6ba 100644
--- a/tine20/Timetracker/Model/Timeaccount.php
+++ b/tine20/Timetracker/Model/Timeaccount.php
@@ -294,8 +294,8 @@ class Timetracker_Model_Timeaccount extends Sales_Model_Accountable_Abstract
self::TYPE => self::TYPE_RELATION,
self::LABEL => 'Stream', // _('Stream')
self::CONFIG => [
- self::APP_NAME => HumanResources_Config::APP_NAME,
- self::MODEL_NAME => HumanResources_Model_Stream::MODEL_NAME_PART,
+ self::APP_NAME => 'HumanResources',
+ self::MODEL_NAME => 'Stream',
self::TYPE => Timetracker_Model_Timeaccount::MODEL_NAME_PART
]
] i think, we can't use the constants here, because HumanResources code might not be loaded as it is in a different package. |
I applied it, but the following error occurred:
|
oops, sorry. found another occurrence in the same file: @@ -318,10 +318,9 @@ class Timetracker_Model_Timeaccount extends Sales_Model_Accountable_Abstract
array('relatedApp' => 'Sales', 'relatedModel' => 'Contract', 'config' => array(
array('type' => 'TIME_ACCOUNT', 'degree' => 'sibling', 'text' => 'Time Account', 'max' => '1:0'), // _('Time Account')
)
- ),
- [
- 'relatedApp' => HumanResources_Config::APP_NAME,
- 'relatedModel' => HumanResources_Model_Stream::MODEL_NAME_PART,
+ ), [
+ 'relatedApp' => 'HumanResources',
+ 'relatedModel' => 'Stream',
'config' => [
['type' => self::MODEL_NAME_PART, 'degree' => Tinebase_Model_Relation::DEGREE_SIBLING, 'max' => '1:0'],
], |
Great! It works well. Thanks! :) |
thanks for your help :) |
pschuele
added a commit
that referenced
this issue
Jul 24, 2020
... in Timetracker. HR code might not be available fixes #7194 Change-Id: Ic02f27d9448ca4010e372eb6bb512ac0e2c0bc40 Reviewed-on: http://gerrit.tine20.com/customers/17325 Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de> Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When updating to 2020.03.4, PHP Fatal error occurred:
I found
HumanResources_Config
only in ./Timetracker/Model/Timeaccount.php`. Because of this issue, I can't update plugins.OS: Debian 10.4
PHP: 7.3.14
The text was updated successfully, but these errors were encountered: