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

Issue56fix #58

Merged
merged 2 commits into from
Mar 29, 2023
Merged

Issue56fix #58

merged 2 commits into from
Mar 29, 2023

Conversation

creecros
Copy link
Collaborator

All Submissions:

  • Have you updated the ChangeLog with your proposed changes?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • pr update to master branch
    • Have you updated the getPluginVersion() in Plugin.php and Makefile version appropriately?

New Feature Submissions:

  • Have you added an explanation of what your changes do and why you'd like us to include them?

Description

Fixes #

Changes proposed in this pull request:

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i didn't look into the why, but when sending $not_editable from the controller, i.e.

$this->response->html($this->helper->layout->app('wiki:wiki/show', array(
            'not_editable' => ($this->userSession->isLogged()) ? false : true,
            'project' => $project,
            'title' => $project['name'] .= " ". t('Wiki'),
            'wikipages' => $this->wiki->getWikipages($project['id']),
        ), 'wiki:wiki/sidebar'));

caused the top right drop downs to no longer function:
image

and the modals to also not function, i.e. edit wiki, or notification modal

instead, i put (isset($not_editable)) ?: $not_editable = false; into the template to simply check if it is set, and set to false if it is not.

Choose a reason for hiding this comment

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

In the end, what can you try to get the drop-down lists back to work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@WebProviderNGO

it does work...
Peek 2023-03-29 11-53

Choose a reason for hiding this comment

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

Thank you! There is no error, the dropdown list works!

ps Sorry, I forgot to undo previous changes

@creecros
Copy link
Collaborator Author

So it seems, a PR must have 1 reviewer, and I cannot review my own code.
@lastlink so only you can merge my commits.

which makes no sense, since anyone else can submit a PR and I can review it and merge it....There is a flaw in that system.

@lastlink lastlink merged commit 340beaa into dev Mar 29, 2023
@creecros creecros deleted the issue56fix branch March 29, 2023 21:06
@prodrigoleao
Copy link

Thanks, work fine!

@creecros
Copy link
Collaborator Author

@lastlink can you give @alfredbuehler same roles as me, so we can approve our merge requests and get this plugin situated again?

@lastlink
Copy link
Contributor

Can do

@lastlink
Copy link
Contributor

@creecros done. I've pushed release 0.3.3 out with latest changes kanboard/website#510

@creecros
Copy link
Collaborator Author

@lastlink you are a true hero!

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.

"Undefined variable $not_editable" php warnings in kanboard wiki page
4 participants