Skip to content

Commit

Permalink
Bug fix (#2)
Browse files Browse the repository at this point in the history
* Update admin.css

Remove !important from css.

* Update clone.admin.inc - Fix missing bracket
  • Loading branch information
stpaultim authored Dec 12, 2023
1 parent 2c7536c commit 0881e9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions css/admin.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.ctc-readonly {
background-color: #f1f1f1 !important;
.form-item .ctc-readonly {
background-color: #f1f1f1;
}

.token-tree {
Expand Down
2 changes: 1 addition & 1 deletion includes/clone.admin.inc
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function content_type_clone_create(array $values) {
// Create new groups.
if (module_exists('field_group')) {
$groups = field_group_info_groups('node', $values['source_machine_name'], NULL, TRUE);
if (!empty($groups))
if (!empty($groups)) {
foreach ($groups['form'] as $group) {
$group->bundle = $values['target_machine_name'];
field_group_group_save($group, $new = TRUE);
Expand Down

0 comments on commit 0881e9d

Please sign in to comment.