Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37669

Re: Truncated text in modified booking module

$
0
0
by Neil Horner.  

Hi David,

Thanks for your reply. I've forked the code as you suggested and commited my new code.

https://github.com/nrhorner/moodle-mod_booking.git

I think I've narrowed down the problem a bit.

/booking/lib.php  around line 67

        //[1]
        $booking->postcode = $booking->postcode['text'];
        $booking->streetnum = $booking->streetnum['text'];

        //[2]


        $backtrace = debug_backtrace();
        print_r( $backtrace ); die;

The copying out of the text results in the truncation, as the backtrace shows intact strings when placed at pos [1], but trucated at [2].  Strings are intact at [2] if I use  $booking->postcode = $booking->postcode;  instead.

However this does not solve the problem, as the output from view.php is still truncated.

Cheers,

Neil

 


Viewing all articles
Browse latest Browse all 37669

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>