Save without closing template

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
acasto
Posts: 38
Joined: Tue Mar 03, 2009 9:00 am

Save without closing template

Post by acasto »

I don't know if this is the right way to do this or not as I don't use PHP often, but it solved an annoyance for me none the less. It was driving me crazy when working in data and graph templates to be sent back to the main template list page every time I hit save.

In data_templates.php I changed line 249 to this:

Code: Select all

header("Location: data_templates.php?action=template_edit&id=" . $_POST["data_template_id"]);
and in graph_templates.php line 160 to this:

Code: Select all

header("Location: graph_templates.php?action=template_edit&id=" . $_POST["graph_template_id"]);

Adam
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This behavior has been corrected in 0.88. We replace the Save,Cancel, with Save, Return.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest