Listing & Form & Refactoring
- finished implementing forms - fixed form reset when clicking on new - fixed responsive for select all checkbox and toggle item details - refactored listing items' actions - added Trash action - cleaned up validations on models - fixed syntax - fixed tests
This commit is contained in:
@ -62,7 +62,7 @@ class Subscriber extends Model {
|
||||
return $orm->where('status', $group);
|
||||
}
|
||||
|
||||
public function segments() {
|
||||
function segments() {
|
||||
return $this->has_many_through(
|
||||
__NAMESPACE__.'\Segment',
|
||||
__NAMESPACE__.'\SubscriberSegment',
|
||||
@ -71,7 +71,7 @@ class Subscriber extends Model {
|
||||
);
|
||||
}
|
||||
|
||||
public static function createOrUpdate($data = array()) {
|
||||
static function createOrUpdate($data = array()) {
|
||||
$subscriber = false;
|
||||
|
||||
if(isset($data['id']) && (int)$data['id'] > 0) {
|
||||
|
Reference in New Issue
Block a user