File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,9 +96,9 @@ public function __construct()
9696 function (\Nails \Survey \Resource \Survey $ oItem ) {
9797 return sprintf (
9898 'Responses – %s ' ,
99- $ oItem ->responses != $ oItem ->responses_submitted
100- ? $ oItem ->responses_submitted . '/ ' . $ oItem ->responses
101- : $ oItem ->responses
99+ $ oItem ->responses -> count != $ oItem ->responses_submitted -> count
100+ ? $ oItem ->responses_submitted -> count . '/ ' . $ oItem ->responses -> count
101+ : $ oItem ->responses -> count
102102 );
103103 },
104104 'btn-warning '
@@ -149,7 +149,7 @@ protected function indexCheckboxFilters(): array
149149 protected static function isEditButtonEnabled ($ oItem = null ): bool
150150 {
151151 return parent ::isEditButtonEnabled ($ oItem )
152- && ($ oItem ->responses ->count ?? $ oItem -> responses ?? 0 ) === 0 ;
152+ && ($ oItem ->responses ->count ?? 0 ) === 0 ;
153153 }
154154
155155 // --------------------------------------------------------------------------
@@ -160,7 +160,7 @@ protected static function isEditButtonEnabled($oItem = null): bool
160160 protected static function isDeleteButtonEnabled ($ oItem = null ): bool
161161 {
162162 return parent ::isDeleteButtonEnabled ($ oItem )
163- && ($ oItem ->responses ->count ?? $ oItem -> responses ?? 0 ) === 0 ;
163+ && ($ oItem ->responses ->count ?? 0 ) === 0 ;
164164 }
165165
166166 // --------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments