Skip to content

Commit 2f040e1

Browse files
committed
scoumbourdis#441: set_clone and unset_clone on flexgrid
1 parent 8cd00ae commit 2f040e1

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

application/libraries/Grocery_CRUD.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4054,6 +4054,13 @@ public function unset_clone()
40544054
return $this;
40554055
}
40564056

4057+
public function set_clone()
4058+
{
4059+
$this->unset_clone = false;
4060+
4061+
return $this;
4062+
}
4063+
40574064
/**
40584065
*
40594066
* The fields that user will see on add/edit

assets/grocery_crud/themes/flexigrid/views/list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</div>
1616
</th>
1717
<?php }?>
18-
<?php if(!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)){?>
18+
<?php if(!$unset_delete || !$unset_edit || !$unset_read || !$unset_clone || !empty($actions)){?>
1919
<th align="left" abbr="tools" axis="col1" class="" width='20%'>
2020
<div class="text-right">
2121
<?php echo $this->l('list_actions'); ?>

0 commit comments

Comments
 (0)