Skip to content

Commit

Permalink
Fixed fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tikhanovichA committed Oct 23, 2019
1 parent 29c8459 commit b6e9352
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions controller/CompatibilityChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ protected function getData($check = false)
$data[Storage::DIAGNOSTIC_SCHOOL_ID] = \tao_helpers_Display::sanitizeXssHtml(trim($this->getRequestParameter('school_id')));
}

if ($this->hasRequestParameter('workstation')) {
$data[Storage::DIAGNOSTIC_WORKSTATION] = \tao_helpers_Display::sanitizeXssHtml(trim($this->getRequestParameter('workstation')));
}

if ($this->hasRequestParameter('school_number')) {
$data[Storage::DIAGNOSTIC_SCHOOL_NUMBER] = \tao_helpers_Display::sanitizeXssHtml(trim($this->getRequestParameter('school_number')));
}
Expand Down
2 changes: 1 addition & 1 deletion views/js/tools/diagnostic/diagnostic.js
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ define([
}

if (this.config.requireSchoolId) {
manageSchoolProperties(['school_id']);
manageSchoolProperties(['school_id', 'workstation']);
}

// show result details
Expand Down
4 changes: 4 additions & 0 deletions views/js/tools/diagnostic/tpl/main.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<label for="school_id">{{__ "School ID:"}}</label>
<input type="text" data-control="school_id" id="school_id" name="school_id" maxlength="255" placeholder="{{__ "School ID"}}" />
</p>
<p>
<label for="workstation">{{__ "Workstation:"}}</label>
<input type="text" data-control="workstation" id="workstation" name="workstation" maxlength="64" placeholder="{{__ "Workstation name"}}" />
</p>
{{/if}}
{{#if requireSchoolName}}
{{#if validateSchoolName}}
Expand Down

0 comments on commit b6e9352

Please sign in to comment.