From 5ac4677c02f6e0921c812436a594daa63c563443 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 29 Jul 2020 18:59:44 -0400 Subject: [PATCH] Add missing view tempplates for zone add/edit. Fixes #2986 --- web/api/app/View/Zones/json/add.ctp | 2 ++ web/api/app/View/Zones/json/edit.ctp | 2 ++ web/api/app/View/Zones/xml/add.ctp | 2 ++ web/api/app/View/Zones/xml/edit.ctp | 2 ++ 4 files changed, 8 insertions(+) create mode 100644 web/api/app/View/Zones/json/add.ctp create mode 100644 web/api/app/View/Zones/json/edit.ctp create mode 100644 web/api/app/View/Zones/xml/add.ctp create mode 100644 web/api/app/View/Zones/xml/edit.ctp diff --git a/web/api/app/View/Zones/json/add.ctp b/web/api/app/View/Zones/json/add.ctp new file mode 100644 index 000000000..1675fa9be --- /dev/null +++ b/web/api/app/View/Zones/json/add.ctp @@ -0,0 +1,2 @@ +echo json_encode($message); +echo json_encode($zone); diff --git a/web/api/app/View/Zones/json/edit.ctp b/web/api/app/View/Zones/json/edit.ctp new file mode 100644 index 000000000..1675fa9be --- /dev/null +++ b/web/api/app/View/Zones/json/edit.ctp @@ -0,0 +1,2 @@ +echo json_encode($message); +echo json_encode($zone); diff --git a/web/api/app/View/Zones/xml/add.ctp b/web/api/app/View/Zones/xml/add.ctp new file mode 100644 index 000000000..a8fcec73b --- /dev/null +++ b/web/api/app/View/Zones/xml/add.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response'=>$message, 'zone'=>$zone)); +echo $xml->asXML(); diff --git a/web/api/app/View/Zones/xml/edit.ctp b/web/api/app/View/Zones/xml/edit.ctp new file mode 100644 index 000000000..cb6f92f66 --- /dev/null +++ b/web/api/app/View/Zones/xml/edit.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $message, 'zone'=>$zone)); +echo $xml->asXML();