Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Form - Option text doesn't work #775

Open
syntaxerror opened this issue Jul 11, 2018 · 0 comments
Open

Form - Option text doesn't work #775

syntaxerror opened this issue Jul 11, 2018 · 0 comments

Comments

@syntaxerror
Copy link
Contributor

syntaxerror commented Jul 11, 2018

$option_text = array(
'yes' => $this->language->get('text_enabled'),
'no' => $this->language->get('text_disabled')
);
$status['value'] = $this->config->get('google_analytics_status');
$status['labelclass'] = 'radio-inline';
$form = new AForm('form-google-analytics', $action);
$form->addElement(new Arastta\Component\Form\Element\Textarea($this->language->get('entry_code'), 'google_analytics_code', $public));
$form->addElement(new Arastta\Component\Form\Element\YesNo($this->language->get('entry_status'), 'google_analytics_status', $status, $option_text));

According to those lines, 'Yes' and 'No' should be replaced with 'Enabled' and 'Disabled', but this obviously doesn't work:
form_options
The question now is if this is a bug in Arastta Core or Arastta Form ...?

Side question! Does Arastta Form support help texts? Anyhow, shortDesc and longDesc doesn't work on YesNo ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant