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

Added custome js and css to the widget edit page #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brianhks
Copy link
Contributor

The dashboard custom js and css where not being applied in the edit widget page. This patch fixes that.

@@ -47,6 +47,9 @@ function edit($id = null) {
$dashboard_id = $this->request->data['Dbview']['dashboard_id'];
$dashboards = $this->Dbview->Dashboard->find('list');
$this->set(compact('dashboards', 'dashboard_id'));

$dashboard = $this->Dashboard->read(null, $dashboard_id);
Copy link
Owner

Choose a reason for hiding this comment

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

There should be no need for a second DB query here. $this->request->data['Dashboard'] should have the associated dashboard

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.

2 participants