Permalink
Browse files

Show ID as value/label if index field not found

  • Loading branch information...
1 parent 3528a86 commit 3bf5795abe19bdd7d4b85d7b0df312a6850cfa89 @sc0ttkclark sc0ttkclark committed Aug 14, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 classes/PodsAdmin.php
View
@@ -393,8 +393,10 @@ public function admin_content () {
if ( isset( $pod->pod_data[ 'fields' ][ $pod->pod_data[ 'field_index' ] ] ) )
$label = $pod->pod_data[ 'fields' ][ $pod->pod_data[ 'field_index' ] ];
- else
+ else {
$index = $pod->data[ 'field_id' ];
+ $label = __( 'ID', 'pods' );
+ }
$manage = array(
$index => $label

0 comments on commit 3bf5795

Please sign in to comment.