Skip to content

Commit ccbb7a0

Browse files
committed
Add method for freezing panel array
1 parent 15a201a commit ccbb7a0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

DashboardPanelInstance.class.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ class DashboardPanelTab extends DashboardPanelGroup
8181
class DashboardPanelArray extends WireArray
8282
{
8383
protected $duplicateChecking = false;
84+
protected $frozen = false;
85+
86+
public function freeze()
87+
{
88+
$this->frozen = true;
89+
}
90+
91+
public function frozen()
92+
{
93+
return $this->frozen;
94+
}
8495

8596
public function makeBlankItem()
8697
{

0 commit comments

Comments
 (0)