{"action":"created","issue":{"url":"https://api.github.com/repos/shifthappens/hxeventmanager/issues/2","labels_url":"https://api.github.com/repos/shifthappens/hxeventmanager/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/shifthappens/hxeventmanager/issues/2/comments","events_url":"https://api.github.com/repos/shifthappens/hxeventmanager/issues/2/events","html_url":"https://github.com/shifthappens/hxeventmanager/issues/2","id":102972572,"number":2,"title":"Booking table bug","user":{"login":"gtonline","id":986093,"avatar_url":"https://avatars.githubusercontent.com/u/986093?v=3","gravatar_id":"","url":"https://api.github.com/users/gtonline","html_url":"https://github.com/gtonline","followers_url":"https://api.github.com/users/gtonline/followers","following_url":"https://api.github.com/users/gtonline/following{/other_user}","gists_url":"https://api.github.com/users/gtonline/gists{/gist_id}","starred_url":"https://api.github.com/users/gtonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtonline/subscriptions","organizations_url":"https://api.github.com/users/gtonline/orgs","repos_url":"https://api.github.com/users/gtonline/repos","events_url":"https://api.github.com/users/gtonline/events{/privacy}","received_events_url":"https://api.github.com/users/gtonline/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shifthappens/hxeventmanager/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-25T08:09:10Z","updated_at":"2015-08-29T11:25:13Z","closed_at":null,"body":"Since update 5.6 of Event Manager, the booking table in administration don't work. No data has display."},"comment":{"url":"https://api.github.com/repos/shifthappens/hxeventmanager/issues/comments/135973584","html_url":"https://github.com/shifthappens/hxeventmanager/issues/2#issuecomment-135973584","issue_url":"https://api.github.com/repos/shifthappens/hxeventmanager/issues/2","id":135973584,"user":{"login":"gtonline","id":986093,"avatar_url":"https://avatars.githubusercontent.com/u/986093?v=3","gravatar_id":"","url":"https://api.github.com/users/gtonline","html_url":"https://github.com/gtonline","followers_url":"https://api.github.com/users/gtonline/followers","following_url":"https://api.github.com/users/gtonline/following{/other_user}","gists_url":"https://api.github.com/users/gtonline/gists{/gist_id}","starred_url":"https://api.github.com/users/gtonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtonline/subscriptions","organizations_url":"https://api.github.com/users/gtonline/orgs","repos_url":"https://api.github.com/users/gtonline/repos","events_url":"https://api.github.com/users/gtonline/events{/privacy}","received_events_url":"https://api.github.com/users/gtonline/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T11:25:12Z","updated_at":"2015-08-29T11:25:12Z","body":"Hello,\n\nI have not corrected your script but I found the changes to \"events manager\"\n. This is in the file \"wp-content/plugins/events-manager/classes/em-\nbookings-table.php\" from the line 519. Apparently he change the name of a\nvariable. Here is the code:\n\nCode in 5.5.7 :\n\n$cols = array();\n        foreach($this->cols as $col){\n            //is col a user col or else?\n            //TODO fix urls so this works in all pages in front as well\n            if( $col == 'user_email' ){\n                $cols[] = $EM_Booking->get_person()->user_email;\n            }elseif($col == 'dbem_phone'){\n                $cols[] = esc_html($EM_Booking->get_person()->phone);\n            }elseif($col == 'user_name'){\n                if( $csv || (\nget_option('dbem_bookings_registration_disable') &&\n$EM_Booking->get_person()->ID ==\nget_option('dbem_bookings_registration_user') ) ){\n                    $cols[] = $EM_Booking->get_person()->get_name();\n                }else{\n                    $cols[] = '<a\nhref=\"'.esc_url(add_query_arg(array('person_id'=>$EM_Booking->person_id,\n'event_id'=>null), $EM_Booking->get_event()->get_bookings_url())).'\">'.\n$EM_Booking->person->get_name() .'</a>';\n                }\n            }elseif($col == 'first_name'){\n                $cols[] = esc_html($EM_Booking->get_person()->first_name);\n            }elseif($col == 'last_name'){\n                $cols[] = esc_html($EM_Booking->get_person()->last_name);\n            }elseif($col == 'event_name'){\n                if( $csv ){\n                    $cols[] = $EM_Booking->get_event()->event_name;\n                }else{\n                    $cols[] = '<a\nhref=\"'.$EM_Booking->get_event()->get_bookings_url().'\">'.\nesc_html($EM_Booking->get_event()->event_name) .'</a>';\n                }\n            }elseif($col == 'event_date'){\n                $cols[] = $EM_Booking->get_event()->output('#_EVENTDATES');\n            }elseif($col == 'event_time'){\n                $cols[] = $EM_Booking->get_event()->output('#_EVENTTIMES');\n            }elseif($col == 'booking_price'){\n                if($this->show_tickets && !empty($EM_Ticket)){\n                    $cols[] =\nem_get_currency_formatted(apply_filters('em_bookings_table_row_booking_price_ticket',\n$EM_Ticket_Booking->get_price(false,false, true), $EM_Booking, true));\n                }else{\n                    $cols[] = $EM_Booking->get_price(true);\n                }\n            }elseif($col == 'booking_status'){\n                $cols[] = $EM_Booking->get_status(true);\n            }elseif($col == 'booking_date'){\n                $cols[] = date_i18n(get_option('dbem_date_format').' '.\nget_option('dbem_time_format'), $EM_Booking->timestamp);\n            }elseif($col == 'actions' ){\n                if( !$csv ) $cols[] = implode(' | ',\n$this->get_booking_actions($EM_Booking));\n            }elseif( $col == 'booking_spaces' ){\n                $cols[] = ($this->show_tickets && !empty($EM_Ticket)) ?\n$EM_Ticket_Booking->get_spaces() : $EM_Booking->get_spaces();\n            }elseif( $col == 'booking_id' ){\n                $cols[] = $EM_Booking->booking_id;\n            }elseif( $col == 'ticket_name' && $this->show_tickets &&\n!empty($EM_Ticket) ){\n                $cols[] = $csv ? $EM_Ticket->$col :\nesc_html($EM_Ticket->$col);\n            }elseif( $col == 'ticket_description' && $this->show_tickets &&\n!empty($EM_Ticket) ){\n                $cols[] = $csv ? $EM_Ticket->$col :\nesc_html($EM_Ticket->$col);\n            }elseif( $col == 'ticket_price' && $this->show_tickets &&\n!empty($EM_Ticket) ){\n                $cols[] = $EM_Ticket->get_price(true);\n            }elseif( $col == 'ticket_id' && $this->show_tickets &&\n!empty($EM_Ticket) ){\n                $cols[] = $EM_Ticket->ticket_id;\n            }elseif( $col == 'booking_comment' ){\n                $cols[] = $csv ? $EM_Booking->booking_comment :\nesc_html($EM_Booking->booking_comment);\n            }else{\n                $val = apply_filters('em_bookings_table_rows_col_'.$col,\n'', $EM_Booking, $this, $csv);\n                $cols[] = apply_filters('em_bookings_table_rows_col', $val,\n$col, $EM_Booking, $this, $csv);\n            }\n        }\n\nCode in 5.6 :\n\n$cols = array();\n        foreach($this->cols as $col){\n            $val = ''; //reset value\n            //is col a user col or else?\n            //TODO fix urls so this works in all pages in front as well\n            if( $col == 'user_email' ){\n                $val = $EM_Booking->get_person()->user_email;\n            }elseif($col == 'dbem_phone'){\n                $val = esc_html($EM_Booking->get_person()->phone);\n            }elseif($col == 'user_name'){\n                if( $csv || (\nget_option('dbem_bookings_registration_disable') &&\n$EM_Booking->get_person()->ID ==\nget_option('dbem_bookings_registration_user') ) ){\n                    $val = $EM_Booking->get_person()->get_name();\n                }else{\n                    $val = '<a\nhref=\"'.esc_url(add_query_arg(array('person_id'=>$EM_Booking->person_id,\n'event_id'=>null), $EM_Booking->get_event()->get_bookings_url())).'\">'.\n$EM_Booking->person->get_name() .'</a>';\n                }\n            }elseif($col == 'first_name'){\n                $val = esc_html($EM_Booking->get_person()->first_name);\n            }elseif($col == 'last_name'){\n                $val = esc_html($EM_Booking->get_person()->last_name);\n            }elseif($col == 'event_name'){\n                if( $csv ){\n                    $val = $EM_Booking->get_event()->event_name;\n                }else{\n                    $val = '<a\nhref=\"'.$EM_Booking->get_event()->get_bookings_url().'\">'.\nesc_html($EM_Booking->get_event()->event_name) .'</a>';\n                }\n            }elseif($col == 'event_date'){\n                $val = $EM_Booking->get_event()->output('#_EVENTDATES');\n            }elseif($col == 'event_time'){\n                $val = $EM_Booking->get_event()->output('#_EVENTTIMES');\n            }elseif($col == 'booking_price'){\n                if($this->show_tickets && !empty($EM_Ticket)){\n                    $val =\nem_get_currency_formatted(apply_filters('em_bookings_table_row_booking_price_ticket',\n$EM_Ticket_Booking->get_price(false,false, true), $EM_Booking, true));\n                }else{\n                    $val = $EM_Booking->get_price(true);\n                }\n            }elseif($col == 'booking_status'){\n                $val = $EM_Booking->get_status(true);\n            }elseif($col == 'booking_date'){\n                $val = date_i18n(get_option('dbem_date_format').' '.\nget_option('dbem_time_format'), $EM_Booking->timestamp);\n            }elseif($col == 'actions' ){\n                if( !$csv ) $val = implode(' | ',\n$this->get_booking_actions($EM_Booking));\n            }elseif( $col == 'booking_spaces' ){\n                $val = ($this->show_tickets && !empty($EM_Ticket)) ?\n$EM_Ticket_Booking->get_spaces() : $EM_Booking->get_spaces();\n            }elseif( $col == 'booking_id' ){\n                $val = $EM_Booking->booking_id;\n            }elseif( $col == 'ticket_name' && $this->show_tickets &&\n!empty($EM_Ticket) ){\n                $val = $csv ? $EM_Ticket->$col : esc_html($EM_Ticket->$col);\n            }elseif( $col == 'ticket_description' && $this->show_tickets &&\n!empty($EM_Ticket) ){\n                $val = $csv ? $EM_Ticket->$col : esc_html($EM_Ticket->$col);\n            }elseif( $col == 'ticket_price' && $this->show_tickets &&\n!empty($EM_Ticket) ){\n                $val = $EM_Ticket->get_price(true);\n            }elseif( $col == 'ticket_id' && $this->show_tickets &&\n!empty($EM_Ticket) ){\n                $val = $EM_Ticket->ticket_id;\n            }elseif( $col == 'booking_comment' ){\n                $val = $csv ? $EM_Booking->booking_comment :\nesc_html($EM_Booking->booking_comment);\n            }\n            //use this\n            $val = apply_filters('em_bookings_table_rows_col_'.$col, $val,\n$EM_Booking, $this, $csv, $object);\n            $cols[] = apply_filters('em_bookings_table_rows_col', $val,\n$col, $EM_Booking, $this, $csv, $object); //deprecated, use the above\nfilter instead for better performance\n        }\n\nI search in your script where you use this var but i don't find.\nVoila, if I can help you !!!\n\nStéphane Leininger - stef.leininger@gmail.com\n\n\n2015-08-27 8:24 GMT+02:00 leininger stephane <stef.leininger@gmail.com>:\n\n> Yes I can see your code. Can you tell me what is the file to edit ?\n>\n> Stéphane Leininger - stef.leininger@gmail.com\n> <http://www.courantscene.fr>\n>\n> 2015-08-27 0:19 GMT+02:00 Coen <notifications@github.com>:\n>\n>> I see what you mean. It only displays -- for all fields, even the\n>> original one from events manager itself. I'm a bit low on time now. Are you\n>> a developer and willing to help with solving this? Otherwise it will have\n>> to wait until the weekend at least.\n>>\n>> —\n>> Reply to this email directly or view it on GitHub\n>> <https://github.com/shifthappens/hxeventmanager/issues/2#issuecomment-135194425>\n>> .\n>>\n>\n>\n"}}