Skip to content

Commit

Permalink
bug(Fix Search employee by job Title)
Browse files Browse the repository at this point in the history
- Fix error and bug on component Employee Job title select
  • Loading branch information
lomamech committed Aug 29, 2023
1 parent 5942eb5 commit 6d7f4b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/src/js/components/bhTitleSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ angular.module('bhima.components')
controller : TitleSelectController,
transclude : true,
bindings : {
fonctionId : '<',
titleId : '<',
onSelectCallback : '&',
label : '@?',
},
Expand Down Expand Up @@ -32,6 +32,6 @@ function TitleSelectController(titles, Notify) {

// fires the onSelectCallback bound to the component boundary
$ctrl.onSelect = ($item) => {
$ctrl.onSelectCallback({ fonction : $item });
$ctrl.onSelectCallback({ title : $item });
};
}
2 changes: 1 addition & 1 deletion client/src/modules/employees/registry/search.modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</bh-fonction-select>

<bh-title-select
fonction-id="ModalCtrl.searchQueries.title_employee_id"
title-id="ModalCtrl.searchQueries.title_employee_id"
on-select-callback="ModalCtrl.onSelectTitle(title)">
<bh-clear on-clear="ModalCtrl.clear('title_employee_id')"></bh-clear>
</bh-title-select>
Expand Down

0 comments on commit 6d7f4b1

Please sign in to comment.