Skip to content
Snippets Groups Projects

Show picklist color as background color for picklist value in Edit / Create view

Merged Satish requested to merge satish.dvnk/vtigercrm:v7 into 7.0.0

Fixes #404 (closed) - Warning: Missing argument 4 for CRMEntity::get_dependents_list(), called in modules/Vtiger/models/Module.php on line 1500 and defined in data/CRMEntity.php on line 1870

Merge request reports

Approval is optional

Merged by avatar (Mar 23, 2025 9:48am UTC)

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
228 228 * @param Vtiger_Module_Model $relatedModule
229 229 * @return <String>
230 230 */
231 public function getRelationQuery($recordId, $functionName, $relatedModule) {
231 public function getRelationQuery($recordId, $functionName, $relatedModule, $relationId) {
232 232 if ($functionName === 'get_activities') {
233 233 $userNameSql = getSqlForNameInDisplayFormat(array('first_name' => 'vtiger_users.first_name', 'last_name' => 'vtiger_users.last_name'), 'Users');
  • This code is based on an assumption and is hardcoded all over vtiger. Please see #334 (closed). The Users module vtiger_entityname.fieldname value can be changed just like any other entity module. We have customers who set the fieldname value so the system displays the username, rather than the first_name,last_name default.

  • Doesn't quite fix everything... I just loaded this commit. On the DetailView of the Quotes page, in the Documents Widget I see the following warning:

    Warning: Missing argument 4 for Inventory_Module_Model::getRelationQuery(), called in modules/Vtiger/models/Relation.php on line 123 and defined in modules/Inventory/models/Module.php on line 65

  • This warning is reported on almost every page, if you enable error reporting of course ;-)

  • I believe the fix for this is in Vtiger/models/Relation.php on line 123 to change the function call from this:

    $query = $parentModuleModel->getRelationQuery($parentRecord->getId(), $functionName, $relatedModuleModel);

    to this:

    $query = $parentModuleModel->getRelationQuery($parentRecord->getId(), $functionName, $relatedModuleModel, $this->getId());

  • Author Contributor

    Yes @lord_alan, I will test and update you.

  • Author Contributor
  • Thanks @satish.dvnk :-)

  • Please register or sign in to reply
    Loading