hunthu2000 / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 0 forks source link

Bug in Appointment clone() #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an appointment
2. set the appointment Id
3. clone the appointment

What is the expected output? What do you see instead?
I would expect the id is also copied

In Appointment.java the clone method should be:

    public Appointment clone() {
        Appointment clone = new Appointment();
                close.setId(this.id);
        clone.setAllDay(this.allDay);
        clone.setAttendees(this.attendees);
        clone.setCreatedBy(this.createdBy);
        clone.setDescription(this.description);
        clone.setEnd(this.end);
        clone.setLocation(this.location);
        clone.setStart(this.start);
        // clone.setAppointmentStyle(this.appointmentStyle);
        clone.setTitle(this.title);
        clone.setStyle(this.style);

        return clone;
    }

Original issue reported on code.google.com by ctasada on 23 Sep 2010 at 3:59

GoogleCodeExporter commented 9 years ago

Original comment by Brad.Ryd...@gmail.com on 23 Sep 2010 at 4:07