Skip to content

Commit

Permalink
index icon. number fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Praesidiarius committed Mar 9, 2020
1 parent 07ee661 commit 1ed8175
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "oneplace/oneplace-core",
"description": "onePlace Core Application",
"type": "project",
"version": "1.0.27",
"version": "1.0.28",
"license": "BSD-3-Clause",
"keywords": [
"laminas",
Expand Down
3 changes: 3 additions & 0 deletions module/Application/language/de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ msgstr "Installierte Designs"
msgid "Activate"
msgstr "Aktivieren"

msgid "State"
msgstr "Status"

msgid "Yes"
msgstr "Ja"

Expand Down
7 changes: 6 additions & 1 deletion module/Application/src/Model/CoreEntityModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ public function getSelectField($sField) {
CoreEntityModel::$aEntityTables[$oField->tbl_cached_name] = CoreController::$oServiceManager->get($oField->tbl_class);
//CoreEntityModel::$aEntityTables[$oField->tbl_name] = CoreController::$oServiceManager->get('OnePlace\Contact\Model\ContactTable');
}
return CoreEntityModel::$aEntityTables[$oField->tbl_cached_name]->getSingle($iSelectIDFS);
try {
return CoreEntityModel::$aEntityTables[$oField->tbl_cached_name]->getSingle($iSelectIDFS);
} catch(\RuntimeException $e) {
return false;
}

} else {
if($oField->tbl_class == 'OnePlace\BoolSelect') {
return ($this->$sField == 2) ? 'Yes' : 'No';
Expand Down
2 changes: 1 addition & 1 deletion module/Application/src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Module {
*
* @since 1.0.0
*/
const VERSION = '1.0.27';
const VERSION = '1.0.28';

public function getConfig() : array
{
Expand Down
8 changes: 8 additions & 0 deletions module/Application/view/partial/basicformfield.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ switch($oField->type) {
value="<?=(isset($this->oItem)) ? $this->oItem->getTextField($oField->fieldkey) : ''?>"<?=$sExtraAttributes?> />
<?php
break;
/**
* Number
*/
case 'number': ?>
<input type="number" class="form-control" name="<?=$this->sFormName?>_<?=$oField->fieldkey?>"
value="<?=(isset($this->oItem)) ? $this->oItem->getTextField($oField->fieldkey) : ''?>"<?=$sExtraAttributes?> />
<?php
break;
/**
* Textarea
*/
Expand Down
3 changes: 3 additions & 0 deletions module/Application/view/partial/indexheader.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
<?php } ?>
<?php } ?>
<?=$this->translate($this->sTitle)?>
<?php if(isset($this->sCount)) { ?>
<small><?=$this->sCount?></small>
<?php } ?>
</h1>

0 comments on commit 1ed8175

Please sign in to comment.