Skip to content
Browse files

bio details improvement

  • Loading branch information...
1 parent 369c296 commit 517167a5bcf8bced6e5c0bee9685f281988fc9f8 @denis-larka denis-larka committed Aug 29, 2012
View
10 inc/handler_exception.inc
@@ -23,7 +23,7 @@
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
- * @auther H J P Fonseka <jo@respere.com>
+ * @author H J P Fonseka <jo@respere.com>
* @package Framework
*
*/
@@ -53,6 +53,14 @@ function exception_handler($e)
$controller = shnFrontController::getController();
$controller->setAction('db_error');
$controller->sendResponce();
+ error_log("----------------------------",0);
+ error_log(" ",0);
+ error_log("MSG:".$e->getMessage(), 0);
+ error_log("SQL:".$e->sql, 0);
+ error_log(" ",0);
+ error_log("----------------------------",0);
+
+
}
else{
$controller = shnFrontController::getController();
View
2 inc/lib_util.inc
@@ -413,7 +413,7 @@ function is_locale_changed()
function is_management_field($formField){
- if($formField['type'] == 'document'){
+ if($formField['type'] == 'document' || $formField['type'] == 'mt_select' || $formField['type'] =='mt_tree' || $formField['type'] =='checkbox' || $formField['type'] =='radio'){
return false;
}
$field_number = $formField['field_number'] %100;
View
4 mod/analysis/analysisModule.class.php
@@ -990,7 +990,9 @@ private function relatedEventOrPersonSearch( $dataArray , &$sqlArray)
if($dataArray['search_type'] != null){
switch($dataArray['search_type']){
case 'person':
- $sqlArray['where'][] = " person_record_number <> '{$dataArray['pid']}'";
+ if($sqlArray['from']=='person'){
+ $sqlArray['where'][] = " person_record_number <> '{$dataArray['pid']}'";
+ }
break;
case 'event':
$sqlArray['where'][] = " event_record_number <> '{$dataArray['eid']}'";
View
2 mod/person/tpls/act_biography_list.php
@@ -16,6 +16,7 @@
<thead>
<tr>
<td width='16px'><input type='checkbox' onchange='$("input.delete").attr("checked",this.checked)' /></td>
+ <td class="title"><?php echo _t('VIEW_BIOGRAPHIC_DETAILS')?></td>
<td class="title"><?php echo _t('TYPE_OF_RELATIONSHIP')?></td>
<td class="title"><?php echo _t('RELATED_PERSON')?></td>
<td class="title"><?php echo _t('INITIAL_DATE')?></td>
@@ -28,6 +29,7 @@
?>
<tr class='<?php if($i++%2==1)echo "odd ";if($_GET['biography_id']==$bio['biographic_details_record_number'])echo 'active'; ?>' >
<td><input name="biographics[]" type='checkbox' value='<?php echo $bio['biographic_details_record_number'] ?>' class='delete'/></td>
+ <td><a href="<?php echo get_url('person','biography_list',null,array('biography_id'=>$bio['biographic_details_record_number'], 'type'=>'bd')); ?>"><?php echo $bio['biographic_details_record_number']; ?></a></td>
<td><a href="<?php echo get_url('person','biography_list',null,array('biography_id'=>$bio['biographic_details_record_number'], 'type'=>'bd')); ?>"><?php echo $bio['relationship_type']; ?></a></td>
<td><a href="<?php echo get_url('person','biography_list',null,array('biography_id'=>$bio['biographic_details_record_number'], 'type'=>'rp')); ?>"><?php echo $bio['person_name']; ?></a></td>
<td><?php echo $bio['initial_date']; ?></td>

0 comments on commit 517167a

Please sign in to comment.
Something went wrong with that request. Please try again.