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

Re:Ticket #629, Fixed Module name too short in Controller/View for permissions #1232

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bonfire/modules/permissions/controllers/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function edit()
*/
private function savePermissions($type = 'insert', $id = 0)
{
$this->form_validation->set_rules('name', 'lang:bf_name', 'required|trim|max_length[30]');
$this->form_validation->set_rules('name', 'lang:bf_name', 'required|trim|max_length[100]');
$this->form_validation->set_rules('description', 'lang:bf_description', 'trim|max_length[100]');
$this->form_validation->set_rules('status', 'lang:bf_status', 'required|trim');
if ($this->form_validation->run() === false) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="control-group<?php echo form_error('name') ? ' error' : ''; ?>">
<label for="name" class="control-label"><?php echo lang('permissions_name'); ?></label>
<div class="controls">
<input id="name" type="text" name="name" class="input-large" maxlength="30" value="<?php echo set_value('name', isset($permissions->name) ? $permissions->name : ''); ?>" />
<input id="name" type="text" name="name" class="input-large" maxlength="100" value="<?php echo set_value('name', isset($permissions->name) ? $permissions->name : ''); ?>" />
<span class="help-inline"><?php echo form_error('name'); ?></span>
</div>
</div>
Expand Down Expand Up @@ -34,4 +34,4 @@
?>
</fieldset>
<?php echo form_close(); ?>
</div>
</div>