Skip to content

Conversation

@amit4106udale
Copy link

No description provided.

$HierarchyModelHierarchys->setState('filter.user_id', $user_Id);
$isManager = $HierarchyModelHierarchys->getItems();

return $isManager;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will retrun array and not boolean

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, i have used this to retrieve users under the manager so can use in drop down filters. And if he has users under him then the user is the manager.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then change the function name.. getSubUsers

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might need to check if the previous function name is used anywhere? If yes,you will need to change it to this new one

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the purpose of this helper ? Why are we adding more things to helpers instead of removing ? Cant you simply use the models for this ?

@manojLondhe manojLondhe changed the base branch from master to release-1.1.3 October 22, 2019 12:17
@manojLondhe manojLondhe changed the base branch from release-1.1.3 to release-1.1.4 July 22, 2021 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants