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

Com_hierarchy changes to check if user have sub users #3

Open
wants to merge 3 commits into
base: release-1.1.4
Choose a base branch
from

Conversation

amit4106udale
Copy link

No description provided.

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

return $isManager;
Copy link
Contributor

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
Contributor

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
Contributor

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