Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

JS Error on Model Creation - undefined element dp

#108

I am seeing a JS error

dp not defined ( multiple pages)

window.onload = function() {

dp.SyntaxHighlighter.ClipboardSwf = '/recess/index.php/flash/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('code');

}

This is causing a problem when attempting to generate a model on an existing database as it doesn't allow/request me to enter the DB table name, as specified in the array, since all the JS is then stopped

This was tested in
Win XP Pro / Apache 2.2
IE 8
FF3.5
Undefined index: primaryKey

Location: Line 209 of C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\recess\recess\recess\apps\tools\controllers\RecessToolsAppsController.class.php
205: $createTable = $values['createTable'] == 'Yes' ? true : false;
206: $tableName = $values['tableName'];
207: }
208: $propertyNames = $values['fields'];
209: $primaryKey = $values['primaryKey'];
210: $types = $values['types'];
211:
212: Library::import('recess.database.orm.Model', true);
213: // Forcing b/c ModelDescriptor is in Model
214:
It would be awesome to get this one sorted out. I really want to take this for a spin

Lostboy

Reported by lostboy · October 5th, 2009 @ 09:49 AM

State: new
Milestone: 0.20
Assigned to: Kris Jordan Kris Jordan

Activity

  1. Erik Diver
    Erik Diver
    • Milestone order changed from 0 to 0

    To tell the truth I need to write my paper about this, but I have very little information! I hope this site will help me

    November 9th, 2011 @ 11:13 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.