Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
feat(debug): allow inheritance value for url
Browse files Browse the repository at this point in the history
Signed-off-by: Naylin <nmedina@teclib.com>
  • Loading branch information
Naylin15 authored and DIOHz0r committed Apr 24, 2018
1 parent 4991b7f commit 595037e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions inc/entityconfig.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public function post_getFromDB() {
'support_website' => '',
'support_email' => '',
'support_address' => '',
'download_url' => '',
];
foreach ($fieldsToRecurse as $field => $default) {
if (empty($this->fields[$field])) {
Expand All @@ -112,9 +113,6 @@ public function prepareInputForAdd($input) {
if (!isset($input['id'])) {
return false;
}
if (!isset($input['download_url'])) {
$input['download_url'] = PLUGIN_FLYVEMDM_AGENT_DOWNLOAD_URL;
}
$input['entities_id'] = $input['id'];

return $input;
Expand Down Expand Up @@ -374,6 +372,7 @@ public function showFormForEntity(Entity $item) {
'support_website' => self::CONFIG_PARENT,
'support_email' => self::CONFIG_PARENT,
'support_address' => self::CONFIG_PARENT,
'download_url' => self::CONFIG_PARENT,
]);
// To set virtual fields about inheritance
$this->post_getFromDB();
Expand Down

0 comments on commit 595037e

Please sign in to comment.