Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/miscellaneous #225

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
2 changes: 1 addition & 1 deletion system/modules/auth/models/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getTitle()
public function setTitle($title)
{
if (!empty($title)) {
$title_lookup = LookupService::getInstance($this->w)->getLookupByTypeAndCode('title', $title);
$title_lookup = LookupService::getInstance($this->w)->getLookupByTypeAndCodeV2('title', $title);
if (empty($title_lookup)) {
$title_lookup = new Lookup($this->w);
$title_lookup->fill(['type' => 'title', 'code' => $title, 'title' => $title]);
Expand Down
2 changes: 1 addition & 1 deletion system/modules/report/actions/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function edit_GET(Web &$w)
(new \Html\Form\Select([
"id|name" => "module",
"label" => "Module",
"selected_option" => strtolower($report->module),
"selected_option" => strtolower($report->module ?? ""),
"options" => ReportService::getInstance($w)->getModules(),
])),
(new \Html\Form\Select([
Expand Down
4 changes: 2 additions & 2 deletions system/modules/task/actions/taskweek.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ function taskweek_ALL(Web &$w)
}

// load the search filters
$a = Html::select("assignee", $members, Request::mixed('assignee'));
$a = Html::select("assignee", $members ?? [], Request::mixed('assignee'));
$w->ctx("assignee", $a);

$taskgroups = Html::select("taskgroup", $group, Request::mixed('taskgroup'));
$taskgroups = Html::select("taskgroup", $group ?? [], Request::mixed('taskgroup'));
$w->ctx("taskgroups", $taskgroups);
}
Loading